package org.example.dao;

import org.example.entity.UserEntity;
import org.springframework.stereotype.Repository;

import java.io.IOException;
import java.util.List;

/**
 * @author HanJiafeng
 */
@Repository
public interface IUserDao {

    /**
     * 插入
     *
     * @param record record
     * @return 插入条数
     * @throws IOException 异常
     */
    int insertSelective(UserEntity record) throws IOException;

    /**
     * 查询
     *
     * @param record record
     * @return list
     * @throws IOException 异常
     */
    List<UserEntity> selectSelective(UserEntity record) throws IOException;
}
